<?php
//print_r($_FILES);
$dest = date('ymdhis').'.csv';

copy($_FILES['csv']['tmp_name'], $dest);

$csv = array();

if (($handle = fopen($dest, "r")) !== FALSE) {
    while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) {
      $csv[] = $data;
    }
    fclose($handle);
}
unlink($dest);
echo '<pre>';
print_r($csv);
?>
<form name="upload" enctype="multipart/form-data" method="post">
  <input type="file" name="csv" />
  <input type="submit" />
</form>
